import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, OnInit } from '@angular/core';
import { RouterModule } from '@angular/router';
import { PageHeaderModule } from '@delon/abc/page-header';
import { G2RadarModule } from '@delon/chart/radar';
import { SettingsService, User, _HttpClient } from '@delon/theme';
import { NzAvatarModule } from 'ng-zorro-antd/avatar';
import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb';
import { NzMessageService } from 'ng-zorro-antd/message';

@Component({
  selector: 'app-dashboard-workplace',
  templateUrl: './workplace.component.html',
  styleUrls: ['./workplace.component.less'],
  changeDetection: ChangeDetectionStrategy.OnPush,
  imports: [NzAvatarModule, G2RadarModule, NzBreadCrumbModule, PageHeaderModule, RouterModule]
})
export class DashboardWorkplaceComponent implements OnInit {
  private readonly settings = inject(SettingsService);
  private readonly http = inject(_HttpClient);
  readonly msg = inject(NzMessageService);
  private readonly cdr = inject(ChangeDetectorRef);
  loading = true;

  get user(): User {
    return this.settings.user;
  }

  ngOnInit(): void {
    console.log('do something');
  }
}
